package com.castle.fortress.admin.rule.listRule.mapper;

import com.castle.fortress.admin.rule.listRule.dto.RuleListRuleDto;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.castle.fortress.admin.rule.listRule.entity.RuleListRuleEntity;
import com.castle.fortress.admin.rule.listRule.dto.RuleListRuleWithInfoDto;
import java.util.Map;
import java.util.List;
/**
 * 规则清单与规则关联表Mapper 接口
 *
 * @author
 * @since 2025-04-22
 */
public interface RuleListRuleMapper extends BaseMapper<RuleListRuleEntity> {

	List<RuleListRuleEntity> queryList(@Param("map")Map<String, Long> pageMap, @Param("ruleListRuleEntity") RuleListRuleEntity ruleListRuleEntity);

	/**
	 * 根据合同ID查询规则清单与规则关联表，并关联规则信息
	 * @param ruleListRuleDto
	 * @return 联合查询结果
	 */
	List<RuleListRuleWithInfoDto> queryRuleListRuleWithInfo(@Param("dto") RuleListRuleDto ruleListRuleDto);
}
